﻿namespace PLCS.App.UserAuthorization.Converts;

public class RolesStringConvert : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value is not string strValue)
            return null;

        var analysis = strValue.Split(ConstantChar.SplitChar).ToList();

        return analysis;
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        return null;
    }
}